FROM dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:11

MAINTAINER tuike-admin
WORKDIR /ruoyi-tuike

# 更新包管理器并安装 Maven docker 安裝mvn 太慢了
# RUN apt-get update && apt-get install -y maven
RUN mkdir -p /ruoyi-tuike

# COPY . /ruoyi-tuike
# COPY ./ry.sh      /ruoyi-tuike/ry.sh
# RUN ls /ruoyi-tuike -alh
# RUN chmod +x  /ruoyi-tuike/ry.sh
RUN export OSS_ACCESS_KEY_ID=LTAI5tMetQDNNEoJYZX5ek7N
RUN export OSS_ACCESS_KEY_SECRET=nDgMwEBhm3Ay43qS4mi6tEvRDIOJst

ADD ./java/ruoyi-admin.jar  /ruoyi-tuike

# RUN mkdir  /ffmpeg
# COPY  ./ffmpeg/ffmpeg-5.1.1 /ffmpeg

# 设置容器启动时的命令
# ENTRYPOINT ["/bin/bash","/ruoyi-tuike/ry.sh", "start"]
EXPOSE 8080

CMD ["java", "-jar","/ruoyi-tuike/ruoyi-admin.jar"]
